<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>项目菜单</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="-898917446">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "-898917446";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("project.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建项目菜单"
  			,"inport":"导入项目菜单"
  			,"update":"修改项目菜单"
  			,"detail":"项目菜单详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#projectForm").form({
		"":function(){}
		,"srvProject.spId":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"srvProject.spName":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "项目名称不能为空";
			}
		}
		,"srvProject.spParentId":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"srvProject.spFamily":function(el){
		}
		,"srvProject.spFlag":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "标识最大长度为32个字符";
		}
		,"srvProject.spUrl":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "项目地址不能为空";
			}
			if(el.value.length>128 && el.value.indexOf("[*]")==-1)
				return "项目地址最大长度为128个字符";
		}
		,"srvProject.spLogo":function(el){
		}
		,"srvProject.spDescript":function(el){
			if(el.value.length>128 && el.value.indexOf("[*]")==-1)
				return "项目描述最大长度为128个字符";
		}
		,"srvProject.spLevel":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"srvProject.spLimitExp":function(el){
			if(el.value.length>256 && el.value.indexOf("[*]")==-1)
				return "扩展权限最大长度为256个字符";
		}
		,"srvProject.spGroup":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "项目分组最大长度为32个字符";
		}
		,"srvProject.spMind":function(el){
			if(el.value.length>65535 && el.value.indexOf("[*]")==-1)
				return "流程信息最大长度为65535个字符";
		}
		,"srvProject.spStatus":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="SrvProject" id="projectForm" name="projectForm" target="jsoniframe" action="project.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写项目菜单相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("spId_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spId"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spId"))))}}
	{{lz.set("spId_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spId}}
	<dl lz:if="{{spId_editable||spId_readonly}}" class="spId hidden " major  ref="spId">
		<dt>编　　号:</dt>
		<dd lz:if="{{spId_editable}}" input="hidden">
			<lz:block lz:if="{{srvProject$spId}}">
				{{srvProject$spId}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spId}}">
			<input type="hidden" value="{{lz.htm(srvProject.spId)}}" name="srvProject.spId" id="spId" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spId_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="spId">{{srvProject.spId}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvProject.spId$||srvProject.spId)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spId}}
	{{lz.set("spName_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spName"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spName"))))}}
	{{lz.set("spName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spName}}
	<dl lz:if="{{spName_editable||spName_readonly}}" class="spName  " major  ref="spName">
		<dt>项目名称:</dt>
		<dd lz:if="{{spName_editable}}" input="text">
			<lz:block lz:if="{{srvProject$spName}}">
				{{srvProject$spName}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spName}}">
		 	<input type="text" class="input narrow"   name="srvProject.spName" id="spName"  value="{{lz.htm(srvProject.spName)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入项目菜单的项目名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="spName">{{srvProject.spName}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvProject.spName$||srvProject.spName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spName}}
	{{lz.set("spParentId_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spParentId"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spParentId"))))}}
	{{lz.set("spParentId_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spParentId}}
	<dl lz:if="{{spParentId_editable||spParentId_readonly}}" class="spParentId  " major  ref="spParentId">
		<dt>父 节 点:</dt>
		<dd lz:if="{{spParentId_editable}}" input="label">
			<lz:block lz:if="{{srvProject$spParentId}}">
				{{srvProject$spParentId}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spParentId}}">
			<input type="hidden" name="srvProject.spParentId" id="srvProject.spParentId"  value="{{srvProject.spParentId||'0'}}"/>
			{{srvProject.spParentId$||srvProject.spParentId||"[无]"}}
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spParentId_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class="" name="srvProject.spParentId" style="display:none;" id="spParentId">{{srvProject.spParentId}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/permissions/project.details.html?key=srvProject.spParentId}')">
			 {{lz.html(srvProject.spParentId$||srvProject.spParentId)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spParentId}}
	{{lz.set("spFamily_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spFamily"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"spFamily"))))}}
	{{lz.set("spFamily_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spFamily}}
	<dl lz:if="{{spFamily_editable||spFamily_readonly}}" class="spFamily hidden " minor  ref="spFamily">
		<dt>家　　族:</dt>
		<dd lz:if="{{spFamily_editable}}" input="hidden">
			<lz:block lz:if="{{srvProject$spFamily}}">
				{{srvProject$spFamily}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spFamily}}">
			<input type="hidden" value="{{lz.htm(srvProject.spFamily)}}" name="srvProject.spFamily" id="spFamily" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spFamily_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="spFamily">{{srvProject.spFamily}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvProject.spFamily$||srvProject.spFamily)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spFamily}}
	{{lz.set("spFlag_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spFlag"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spFlag"))))}}
	{{lz.set("spFlag_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spFlag}}
	<dl lz:if="{{spFlag_editable||spFlag_readonly}}" class="ribs spFlag  " major  ref="spFlag">
		<dt>标　　识:</dt>
		<dd lz:if="{{spFlag_editable}}" input="text">
			<lz:block lz:if="{{srvProject$spFlag}}">
				{{srvProject$spFlag}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spFlag}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvProject.spFlag" id="spFlag"  value="{{lz.htm(srvProject.spFlag)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入项目菜单的标识</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spFlag_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="spFlag">{{srvProject.spFlag}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvProject.spFlag$||srvProject.spFlag)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spFlag}}
	{{lz.set("spUrl_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spUrl"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spUrl"))))}}
	{{lz.set("spUrl_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spUrl}}
	<dl lz:if="{{spUrl_editable||spUrl_readonly}}" class="spUrl   mider" major  ref="spUrl">
		<dt>项目地址:</dt>
		<dd lz:if="{{spUrl_editable}}" input="text">
			<lz:block lz:if="{{srvProject$spUrl}}">
				{{srvProject$spUrl}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spUrl}}">
		 	<input type="text" class="input mide"  maxlength="128" name="srvProject.spUrl" id="spUrl"  value="{{lz.htm(srvProject.spUrl)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入项目菜单的项目地址</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spUrl_readonly}}">
		 	<div class="state-input mide">
		 		<textarea class=""  style="display:none;" id="spUrl">{{srvProject.spUrl}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvProject.spUrl$||srvProject.spUrl)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spUrl}}
	{{lz.set("spLogo_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spLogo"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spLogo"))))}}
	{{lz.set("spLogo_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spLogo}}
	<dl lz:if="{{spLogo_editable||spLogo_readonly}}" class="ribs spLogo   wider" minor  ref="spLogo">
		<dt>Logo:</dt>
		<dd lz:if="{{spLogo_editable}}" input="image">
			<lz:block lz:if="{{srvProject$spLogo}}">
				{{srvProject$spLogo}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spLogo}}">
		    <input type="text" class="input" maxlength="128" size="32" name="srvProject.spLogo" id="spLogo"  value="{{lz.htm(srvProject.spLogo)}}"/>
			<button type="button" onclick="$.upload({type:'img',callback:function(url){if(url)$('#spLogo').val(url)}})" class="button">设置图片</button>
			<button type="button" onclick="$('#spLogo').val('')" class="button">删除图片</button>
			<button type="button" onclick="$.thumb({url:$('#spLogo').val()})" class="button">查看图片</button>
	 	 </lz:block>
	 	 
	 	 <em>请上传项目菜单的Logo</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spLogo_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="spLogo">{{srvProject.spLogo}}</textarea>
		 		<span>
		 	<img lz:if="{{srvProject.spLogo}}" onclick="$.thumb({url:this.src})" style="margin:10px;padding:1px;border:1px solid;" onload="if(this.width>this.height){this.width=96}else{this.height=96}" src="{{lz.htm(srvProject.spLogo)}}"/>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spLogo}}
	{{lz.set("spDescript_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spDescript"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spDescript"))))}}
	{{lz.set("spDescript_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spDescript}}
	<dl lz:if="{{spDescript_editable||spDescript_readonly}}" class="ribs spDescript   mider" major  ref="spDescript">
		<dt>项目描述:</dt>
		<dd lz:if="{{spDescript_editable}}" input="text">
			<lz:block lz:if="{{srvProject$spDescript}}">
				{{srvProject$spDescript}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spDescript}}">
		 	<input type="text" class="input mide"  maxlength="128" name="srvProject.spDescript" id="spDescript"  value="{{lz.htm(srvProject.spDescript)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入项目菜单的项目描述</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spDescript_readonly}}">
		 	<div class="state-input mide">
		 		<textarea class=""  style="display:none;" id="spDescript">{{srvProject.spDescript}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvProject.spDescript$||srvProject.spDescript)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spDescript}}
	{{lz.set("spLevel_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spLevel"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spLevel"))))}}
	{{lz.set("spLevel_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spLevel}}
	<dl lz:if="{{spLevel_editable||spLevel_readonly}}" class="ribs spLevel  " major  ref="spLevel">
		<dt>优 先 级:</dt>
		<dd lz:if="{{spLevel_editable}}" input="number">
			<lz:block lz:if="{{srvProject$spLevel}}">
				{{srvProject$spLevel}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spLevel}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="srvProject.spLevel" id="spLevel"  value="{{lz.htm(srvProject.spLevel)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入项目菜单的优先级</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spLevel_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="spLevel">{{srvProject.spLevel}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvProject.spLevel$||srvProject.spLevel)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spLevel}}
	{{lz.set("spLimitExp_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spLimitExp"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spLimitExp"))))}}
	{{lz.set("spLimitExp_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spLimitExp}}
	<dl lz:if="{{spLimitExp_editable||spLimitExp_readonly}}" class="ribs spLimitExp   mider" minor  ref="spLimitExp">
		<dt>扩展权限:</dt>
		<dd lz:if="{{spLimitExp_editable}}" input="text">
			<lz:block lz:if="{{srvProject$spLimitExp}}">
				{{srvProject$spLimitExp}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spLimitExp}}">
		 	<input type="text" class="input mide"  maxlength="256" name="srvProject.spLimitExp" id="spLimitExp"  value="{{lz.htm(srvProject.spLimitExp)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入项目菜单的扩展权限</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spLimitExp_readonly}}">
		 	<div class="state-input mide">
		 		<textarea class=""  style="display:none;" id="spLimitExp">{{srvProject.spLimitExp}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvProject.spLimitExp$||srvProject.spLimitExp)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spLimitExp}}
	{{lz.set("spGroup_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spGroup"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spGroup"))))}}
	{{lz.set("spGroup_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spGroup}}
	<dl lz:if="{{spGroup_editable||spGroup_readonly}}" class="ribs spGroup  " major  ref="spGroup">
		<dt>项目分组:</dt>
		<dd lz:if="{{spGroup_editable}}" input="text">
			<lz:block lz:if="{{srvProject$spGroup}}">
				{{srvProject$spGroup}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spGroup}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvProject.spGroup" id="spGroup"  value="{{lz.htm(srvProject.spGroup)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入项目菜单的项目分组</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spGroup_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="spGroup">{{srvProject.spGroup}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvProject.spGroup$||srvProject.spGroup)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spGroup}}
	{{lz.set("spMind_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spMind"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spMind"))))}}
	{{lz.set("spMind_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spMind}}
	<dl lz:if="{{spMind_editable||spMind_readonly}}" class="ribs spMind   wider" minor  ref="spMind">
		<dt>流程信息:</dt>
		<dd lz:if="{{spMind_editable}}" input="textarea">
			<lz:block lz:if="{{srvProject$spMind}}">
				{{srvProject$spMind}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spMind}}">
		 	<textarea class="input wide"  id="spMind" name="srvProject.spMind" rows="5">{{srvProject.spMind}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入项目菜单的流程信息</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spMind_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(srvProject.spMind$||srvProject.spMind)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spMind}}
	{{lz.set("spStatus_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"spStatus"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"spStatus"))))}}
	{{lz.set("spStatus_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$spStatus}}
	<dl lz:if="{{spStatus_editable||spStatus_readonly}}" class="spStatus  " major  ref="spStatus">
		<dt>状　　态:</dt>
		<dd lz:if="{{spStatus_editable}}" input="select">
			<lz:block lz:if="{{srvProject$spStatus}}">
				{{srvProject$spStatus}}
			</lz:block>
			<lz:block lz:if="{{!srvProject$spStatus}}">
		 	<select class="narrow" id="spStatus" name="srvProject.spStatus">
		 		<option value="">请选择</option>
				<option value="1" selected='{{srvProject.spStatus=="1"?"selected":""}}'>有效</option>
				<option value="0" selected='{{srvProject.spStatus=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择项目菜单的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{spStatus_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="spStatus">{{srvProject.spStatus}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvProject.spStatus$||srvProject.spStatus)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$spStatus}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{srvProject.spId}}" name="srvProject.spId" id="spId" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/permissions/project.edit.html?edittype=update&id={{srvProject.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				<button lz:if="{{canDel}}" type="button" class="button" onclick="deleteProject('{{srvProject.id}}','{{srvProject.spName}}')">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					删除&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/permissions/project.edit.html",document.title,"/admin//images/icons/20088256422681277808.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/permissions/project.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


	/**
	* 删除项目菜单
	**/
	function deleteProject(id,flag)
	{
		var dialog=top.$.dialog({
				html:"<span style='white-space:nowrap;'>确定要删除当前数据吗？</span>",
				title:"删除项目菜单",
				modal: true,			
				onOk:function(){
					dialog.closeDialog();
					var url = "/admin/permissions/project.delete.do";
					var params = {id:id};
					var protocol = $.getAjax(url,params);
					if(protocol.message){
						top.$.toast(protocol.message);
					}
					if(protocol.success){
						caller.location.href=caller.location.href;		
					}
				}
		 });	
	}
</script>
</html>